package com.ym.domain.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Data
@Table
@TableComment("域名解析历史表")
public class DmDomainResolutionHistory {

    @IsKey
    @TableId(type = IdType.ASSIGN_ID)
    @Column
    @ColumnComment("主键ID")
    private Long id;

    @Column
    @ColumnComment("批次操作ID")
    private Long batchOperationId;

    @Column
    @ColumnComment("客户ID")
    private Integer customerId;

    @Column
    @ColumnComment("域名ID")
    @Index
    private Long domainId;

    @Column(length = 255)
    @ColumnComment("域名")
    private String domainName;

    @Column
    @ColumnComment("操作类型(增加,修改,删除)")
    private String operationType;

    @Column
    @ColumnComment("操作结果")
    private String operationResult;

    @Column
    @ColumnType(value = MySqlTypeConstant.TEXT)
    @ColumnComment("解析内容")
    private String content;

    @Column
    @TableField(fill = FieldFill.INSERT)
    @ColumnComment("创建时间")
    private LocalDateTime createTime;

}
